//
// Created by zhouwd on 2020/3/6.
//

#ifndef LEARNNEW_JNIUTIL_H
#define LEARNNEW_JNIUTIL_H
#include <EGL/egl.h>
#include <GLES3/gl3.h>
#include <cstdlib>
#include <cstring>
#include <jni.h>
#include <android/log.h>
#define LOG_TAG "OPENGL-LEARN"
#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_opengllearnmodule_OpenglLearnActivity_glInit(JNIEnv *env, jclass type, jobject assetManager);

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_opengllearnmodule_OpenglLearnActivity_glResize(JNIEnv *env, jclass type, jint width, jint height);

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_opengllearnmodule_OpenglLearnActivity_glStep(JNIEnv *env, jclass type);

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_opengllearnmodule_OpenglLearnActivity_glAddTexturePic(JNIEnv *env, jclass type, jbyteArray data_, jint size, jint width, jint height);

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_opengllearnmodule_OpenglLearnActivity_glChange(JNIEnv *env, jclass type);
#endif //LEARNNEW_JNIUTIL_H
